emacs.git
8 months agoMake xoauth2 auth fail when a smtp server replies 334 (Bug#78366)
Xiyue Deng [Fri, 16 May 2025 09:48:52 +0000 (02:48 -0700)]
Make xoauth2 auth fail when a smtp server replies 334 (Bug#78366)

* lisp/mail/smtpmail.el (smtpmail-try-auth-method): Throw error 535
when receiving a "334 server challenge" reply.

(cherry picked from commit 53371c959462a677a29ee869b3b6627facf3ed79)

8 months ago; * etc/PROBLEMS: Improve the item about 'C-S-u' in PGTK build.
Eli Zaretskii [Mon, 2 Jun 2025 15:34:21 +0000 (18:34 +0300)]
; * etc/PROBLEMS: Improve the item about 'C-S-u' in PGTK build.

8 months ago; * lisp/subr.el (setq-local): Doc fix (bug#78644).
Eli Zaretskii [Sat, 31 May 2025 08:12:58 +0000 (11:12 +0300)]
; * lisp/subr.el (setq-local): Doc fix (bug#78644).

8 months agoRevert "; * lisp/subr.el (setq-local): Doc fix (bug#78644)."
Eli Zaretskii [Sat, 31 May 2025 08:08:45 +0000 (11:08 +0300)]
Revert "; * lisp/subr.el (setq-local): Doc fix (bug#78644)."

This reverts commit cb9556d669c037c4e2f1a9c80adacad55948c706.
Some of its parts were not supposed to be installed.

8 months ago; * lisp/subr.el (setq-local): Doc fix (bug#78644).
Eli Zaretskii [Sat, 31 May 2025 07:05:06 +0000 (10:05 +0300)]
; * lisp/subr.el (setq-local): Doc fix (bug#78644).

8 months ago; * doc/lispref/searching.texi (Char Classes): Add speedup advice.
Eli Zaretskii [Thu, 29 May 2025 16:02:13 +0000 (19:02 +0300)]
; * doc/lispref/searching.texi (Char Classes): Add speedup advice.

8 months agoFix bug in 'todo-jump-to-category' (bug#78608)
Stephen Berman [Wed, 28 May 2025 15:17:23 +0000 (17:17 +0200)]
Fix bug in 'todo-jump-to-category' (bug#78608)

* lisp/calendar/todo-mode.el (todo-jump-to-category): Eliminate
comparison of the number of Todo categories before and after
specifying the category to jump to and replace it by a check of
whether there are any items in the category, since an existing
category should always have at least one item (perhaps done or
archived).

8 months agoFix gitlab-ci.yml (don't merge to master)
Michael Albinus [Tue, 27 May 2025 07:10:51 +0000 (09:10 +0200)]
Fix gitlab-ci.yml (don't merge to master)

* test/infra/gitlab-ci.yml (.job-template): Fix config.log name.
(test-filenotify-gio, test-eglot): Fix formatting.

8 months agotypescript-ts-mode: Improve function body indentation (bug#78121)
Konstantin Kharlamov [Tue, 29 Apr 2025 14:51:18 +0000 (21:51 +0700)]
typescript-ts-mode: Improve function body indentation (bug#78121)

Older code was calculating body indentation depending on function
parameters alignment.  This is incorrect, because if parameters are
misaligned, so will the function body.  Instead, use offset of the
previous standalone parent.

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--indent-rules): Stop depending on function
parameters indentation for calculating body content and the closing
`}'.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts:
(Function body with params misindented (bug#78121)): Add new test.

8 months ago; * CONTRIBUTE: Explain the line-width preferences.
Eli Zaretskii [Sun, 25 May 2025 09:08:02 +0000 (12:08 +0300)]
; * CONTRIBUTE: Explain the line-width preferences.

8 months ago; * doc/misc/use-package.texi (Hooks): Fix typo (bug#77609).
Eli Zaretskii [Sat, 24 May 2025 09:59:19 +0000 (12:59 +0300)]
; * doc/misc/use-package.texi (Hooks): Fix typo (bug#77609).

8 months agoFix documentation of use-package's ':hook' keyword
Eli Zaretskii [Sat, 24 May 2025 09:56:30 +0000 (12:56 +0300)]
Fix documentation of use-package's ':hook' keyword

* doc/misc/use-package.texi (Hooks): Document how to add several
functions to the same hook (bug#77609).

9 months ago* test/infra/gitlab-ci.yml (.job-template): Make it more robust.
Michael Albinus [Thu, 22 May 2025 11:18:11 +0000 (13:18 +0200)]
* test/infra/gitlab-ci.yml (.job-template): Make it more robust.

9 months ago; * lisp/emacs-lisp/find-func.el (find-function): Doc fix.
Eli Zaretskii [Thu, 22 May 2025 06:43:45 +0000 (09:43 +0300)]
; * lisp/emacs-lisp/find-func.el (find-function): Doc fix.

9 months agoFix todo-mode item insertion bug (bug#78506)
Stephen Berman [Tue, 20 May 2025 13:29:58 +0000 (15:29 +0200)]
Fix todo-mode item insertion bug (bug#78506)

* lisp/calendar/todo-mode.el (todo-insert-item--next-param): Unset
transient keymap on completing default or copy item insertion
command, to ensure that the next Todo mode key is recognized.

9 months agoAdd support for Pyrefly LSP for Python
Jostein Kjønigsen [Mon, 19 May 2025 08:00:37 +0000 (10:00 +0200)]
Add support for Pyrefly LSP for Python

* lisp/progmodes/eglot.el (eglot-server-programs): Add config
for Pyrefly.  (Bug#78492)

9 months ago; Sync with Tramp 2.7.3.30.2 (Do not merge to master)
Michael Albinus [Sun, 18 May 2025 19:20:41 +0000 (21:20 +0200)]
; Sync with Tramp 2.7.3.30.2 (Do not merge to master)

* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.

9 months agoAdapt Tramp version in customize-package-emacs-version-alist
Michael Albinus [Sun, 18 May 2025 19:12:41 +0000 (21:12 +0200)]
Adapt Tramp version in customize-package-emacs-version-alist

* lisp/net/trampver.el (customize-package-emacs-version-alist):
Add Tramp version integrated in Emacs 30.1.

9 months ago; * ChangeLog.5: Delete entry for minor change.
Sean Whitton [Sun, 18 May 2025 19:00:07 +0000 (20:00 +0100)]
; * ChangeLog.5: Delete entry for minor change.

9 months ago; Update ChangeLog and AUTHORS for Emacs 30.2
Eli Zaretskii [Sun, 18 May 2025 09:25:35 +0000 (05:25 -0400)]
; Update ChangeLog and AUTHORS for Emacs 30.2

* etc/AUTHORS:
^ ChangeLog.5: Update.

9 months ago; Update ldefs-boot.el. Do not merge to master.
Eli Zaretskii [Sun, 18 May 2025 09:24:11 +0000 (05:24 -0400)]
; Update ldefs-boot.el.  Do not merge to master.

9 months ago; Bump Emacs version to 30.1.90
Eli Zaretskii [Sun, 18 May 2025 09:08:31 +0000 (05:08 -0400)]
; Bump Emacs version to 30.1.90

* README:
* configure.ac:
* exec/configure.ac:
* java/AndroidManifest.xml.in (Version-code):
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 30.1.90.

9 months agoFix saving abbrevs by 'abbrev-edit-save-buffer'
Eli Zaretskii [Sat, 17 May 2025 10:00:13 +0000 (13:00 +0300)]
Fix saving abbrevs by 'abbrev-edit-save-buffer'

* lisp/abbrev.el (abbrev-edit-save-buffer): Reset
'abbrevs-changed'.  Suggested by Rick <rbielaws@gmail.com>.
(Bug#78435)

9 months ago; Remove confusing text from ELisp manual
Eli Zaretskii [Sat, 17 May 2025 09:35:29 +0000 (12:35 +0300)]
; Remove confusing text from ELisp manual

* doc/lispref/variables.texi (Defining Variables): Remove outdated
confusing warning.  For the details, see
https://lists.gnu.org/archive/html/emacs-devel/2025-05/msg00332.html.

9 months ago; * doc/emacs/cmdargs.texi (General Variables): More accurate wording.
Eli Zaretskii [Fri, 16 May 2025 12:39:53 +0000 (15:39 +0300)]
; * doc/emacs/cmdargs.texi (General Variables): More accurate wording.

9 months ago; Improve documentation of the -L command-line option
Eli Zaretskii [Fri, 16 May 2025 12:02:58 +0000 (15:02 +0300)]
; Improve documentation of the -L command-line option

* doc/emacs/cmdargs.texi (Action Arguments): Mention that '-L' is
in effect only after the init files are loaded.

9 months agotypescript-ts-mode: align ternary-chain branches (bug#78187)
Konstantin Kharlamov [Thu, 1 May 2025 13:28:29 +0000 (20:28 +0700)]
typescript-ts-mode: align ternary-chain branches (bug#78187)

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--indent-rules): Make sure each new ternary
branch is aligned with the previous one.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts:
(Chained ternary expressions): New test.

9 months ago; Tramp test fixes
Michael Albinus [Thu, 15 May 2025 13:15:22 +0000 (15:15 +0200)]
; Tramp test fixes

* test/lisp/net/tramp-tests.el
(tramp-test26-interactive-file-name-completion): Simplify.
(tramp--test-putty-p): Fix docstring.
(tramp--test-scp-p): New defun.
(tramp-test42-utf8): Use it.

9 months ago; Time Stamps doc: Clearer customize recipe
Stephen Gildea [Tue, 13 May 2025 22:58:07 +0000 (15:58 -0700)]
; Time Stamps doc: Clearer customize recipe

* doc/emacs/files.texi (Time Stamps): Reorder the customize sentence so
that the key words come in the order you would use them.

9 months ago; * doc/lispref/variables.texi (Default Value): Update.
Sean Whitton [Tue, 13 May 2025 11:07:09 +0000 (12:07 +0100)]
; * doc/lispref/variables.texi (Default Value): Update.

Frame-local variables have been removed.

9 months ago; * lisp/mh-e/mh-e.el: Commentary: link to The MH-E Manual
Stephen Gildea [Sun, 11 May 2025 15:45:05 +0000 (08:45 -0700)]
; * lisp/mh-e/mh-e.el: Commentary: link to The MH-E Manual

9 months agoImprove Tramp test
Michael Albinus [Sun, 11 May 2025 12:25:59 +0000 (14:25 +0200)]
Improve Tramp test

* test/lisp/net/tramp-tests.el
(tramp-test26-interactive-file-name-completion): Adapt test.

9 months ago* lisp/autorevert.el (auto-revert-remote-files): Adapt docstring.
Michael Albinus [Sun, 11 May 2025 12:25:32 +0000 (14:25 +0200)]
* lisp/autorevert.el (auto-revert-remote-files): Adapt docstring.

9 months ago; Improve documentation of ls-lisp.el
Eli Zaretskii [Sun, 11 May 2025 11:42:51 +0000 (14:42 +0300)]
; Improve documentation of ls-lisp.el

* lisp/ls-lisp.el (ls-lisp-format-time-list)
(ls-lisp-use-localized-time-format, ls-lisp-format-time): Doc
fixes.

9 months ago; * lisp/emacs-lisp/comp.el (native-compile-prune-cache): Doc fix.
Eli Zaretskii [Sat, 10 May 2025 19:23:27 +0000 (22:23 +0300)]
; * lisp/emacs-lisp/comp.el (native-compile-prune-cache): Doc fix.

9 months agoImprove Electric Pair mode documentation (bug#78021)
Stephen Berman [Sat, 10 May 2025 14:25:05 +0000 (16:25 +0200)]
Improve Electric Pair mode documentation (bug#78021)

* doc/emacs/programs.texi (Matching): Clarify and improve
documentation of Electric Pair mode.

* lisp/elec-pair.el: Improve description in header line.  Add text
and a reference to the Emacs user manual in the Commentary section.
(electric-pair-skip-self, electric-pair-inhibit-predicate)
(electric-pair-preserve-balance)
(electric-pair-delete-adjacent-pairs)
(electric-pair-open-newline-between-pairs)
(electric-pair-skip-whitespace)
(electric-pair-skip-whitespace-function)
(electric-pair-analyze-conversion)
(electric-pair--skip-whitespace)
(electric-pair-text-syntax-table, electric-pair--with-syntax)
(electric-pair-syntax-info, electric-pair--insert)
(electric-pair--syntax-ppss, electric-pair--balance-info)
(electric-pair-inhibit-if-helps-balance)
(electric-pair-skip-if-helps-balance)
(electric-pair-open-newline-between-pairs-psif)
(electric-pair-mode): Clarify and improve doc strings and some comments.
(electric-pair-post-self-insert-function): Restructure doc string
to shorten overlong first line, and reformat overlong lines of code.

9 months agoFix indentation of XML comments
Eli Zaretskii [Sat, 10 May 2025 10:11:22 +0000 (13:11 +0300)]
Fix indentation of XML comments

* lisp/nxml/nxml-mode.el (nxml-compute-indent-in-delimited-token):
Fix indentation in XML comments with empty lines.  Patch by John
Ciolfi <ciolfi@mathworks.com>.  (Bug#73206)

9 months agoImprove Tramp's make-process handling for Solaris
Michael Albinus [Sat, 10 May 2025 08:05:51 +0000 (10:05 +0200)]
Improve Tramp's make-process handling for Solaris

* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
Disable buffering also for remote Solaris hosts.
Reported by Stacey Marshall <stacey.marshall@gmail.com>.

9 months agoDocument 'time-stamp-time-zone' in Emacs Manual
Stephen Gildea [Thu, 8 May 2025 21:48:22 +0000 (14:48 -0700)]
Document 'time-stamp-time-zone' in Emacs Manual

* doc/emacs/files.texi (Time Stamp Customization): Document
time-stamp-time-zone.

9 months agoMake treesit--simple-indent-eval more permissive (bug#78065)
Yuan Fu [Wed, 7 May 2025 03:57:06 +0000 (20:57 -0700)]
Make treesit--simple-indent-eval more permissive (bug#78065)

* lisp/treesit.el (treesit--simple-indent-eval): Allow EXP to be
anything, so higher-order indent presets can take anything as an
argument: t, nil, symbols, keywords, etc.

9 months agoAdapt Tramp tests
Michael Albinus [Tue, 6 May 2025 10:22:45 +0000 (12:22 +0200)]
Adapt Tramp tests

* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Adapt tests.

9 months ago; * doc/lispref/tips.texi (Library Headers): Fix wording (bug#78253).
Eli Zaretskii [Mon, 5 May 2025 11:51:56 +0000 (14:51 +0300)]
; * doc/lispref/tips.texi (Library Headers): Fix wording (bug#78253).

9 months ago; * lisp/gnus/mail-source.el (mail-sources): Fix a typo (bug#78235).
Eli Zaretskii [Sun, 4 May 2025 06:47:49 +0000 (09:47 +0300)]
; * lisp/gnus/mail-source.el (mail-sources): Fix a typo (bug#78235).

9 months agoFix quoted local file name parts in Tramp
Michael Albinus [Sat, 3 May 2025 13:00:18 +0000 (15:00 +0200)]
Fix quoted local file name parts in Tramp

* lisp/net/tramp.el (tramp-handle-directory-file-name):
* lisp/net/tramp-integration.el (tramp-rfn-eshadow-update-overlay):
Handle quoted local file name part.

9 months ago; * doc/misc/ert.texi (erts files): Improve indexing.
Eli Zaretskii [Sat, 3 May 2025 07:34:43 +0000 (10:34 +0300)]
; * doc/misc/ert.texi (erts files): Improve indexing.

9 months ago; * lisp/battery.el (battery-status-function): Doc fix.
Eli Zaretskii [Fri, 2 May 2025 12:07:35 +0000 (15:07 +0300)]
; * lisp/battery.el (battery-status-function): Doc fix.

9 months ago; * etc/DEBUG: Grammar fix.
Sean Whitton [Fri, 2 May 2025 02:26:08 +0000 (10:26 +0800)]
; * etc/DEBUG: Grammar fix.

9 months ago; * lisp/international/mule.el (define-coding-system): Doc fix.
Eli Zaretskii [Thu, 1 May 2025 18:02:39 +0000 (21:02 +0300)]
; * lisp/international/mule.el (define-coding-system): Doc fix.

9 months agoFix compilation-mode matches for csharp-mode (bug#78128)
Jostein Kjønigsen [Fri, 25 Apr 2025 13:29:31 +0000 (15:29 +0200)]
Fix compilation-mode matches for csharp-mode (bug#78128)

* lisp/progmodes/csharp-mode.el:
(csharp-compilation-re-dotnet-error):
(csharp-compilation-re-dotnet-warning): Ignore leading whitespace.

9 months ago; Fix last change (do not merge to master).
Eli Zaretskii [Wed, 30 Apr 2025 13:16:30 +0000 (16:16 +0300)]
; Fix last change (do not merge to master).

9 months agoAdd 3 scripts to fontset setup
Eli Zaretskii [Wed, 30 Apr 2025 13:13:53 +0000 (16:13 +0300)]
Add 3 scripts to fontset setup

* lisp/international/fontset.el (setup-default-fontset)
(script-representative-chars): Add support for Avestan, Old Turkic
and Chakma.  Patch by Werner Lemberg <wl@gnu.org>.  Do not merge
to master.

9 months ago; * doc/misc/efaq-w32.texi (Location of init file): Fix a typo.
Eli Zaretskii [Wed, 30 Apr 2025 11:10:25 +0000 (14:10 +0300)]
; * doc/misc/efaq-w32.texi (Location of init file): Fix a typo.

9 months agoFix compilation errors in emacsclient.c with MinGW GCC 15
Eli Zaretskii [Wed, 30 Apr 2025 11:06:44 +0000 (14:06 +0300)]
Fix compilation errors in emacsclient.c with MinGW GCC 15

* lib-src/emacsclient.c (set_fg, get_wc): Declare using actual
function signatures.
(w32_give_focus): Cast return value of 'GetProcAddress' to correct
pointer types.  (Bug#78160)

9 months ago; * etc/DEBUG: Add link to GCC bug #78685.
Sean Whitton [Wed, 30 Apr 2025 09:12:50 +0000 (17:12 +0800)]
; * etc/DEBUG: Add link to GCC bug #78685.

9 months ago; Fix key notation in Introduction to Emacs Lisp
Eli Zaretskii [Wed, 30 Apr 2025 06:03:17 +0000 (09:03 +0300)]
; Fix key notation in Introduction to Emacs Lisp

* doc/lispintro/emacs-lisp-intro.texi (Typing Lists)
(Note for Novices): Fix notation of 'M-C-\'.  (Bug#78153)

9 months ago; * lisp/files.el (revert-buffer-restore-functions): Doc fix (bug#78124).
Eli Zaretskii [Tue, 29 Apr 2025 18:28:01 +0000 (21:28 +0300)]
; * lisp/files.el (revert-buffer-restore-functions): Doc fix (bug#78124).

9 months ago; Improve documentation of 'format-time-string'
Eli Zaretskii [Tue, 29 Apr 2025 08:19:19 +0000 (11:19 +0300)]
; Improve documentation of 'format-time-string'

* doc/lispref/os.texi (Time Parsing): Fix documentation of week
numbers for %U, %V and %W.  (Bug#78096)

9 months ago; * lisp/textmodes/text-mode.el (text-mode-variant): Fix last change.
Eli Zaretskii [Tue, 29 Apr 2025 07:47:35 +0000 (10:47 +0300)]
; * lisp/textmodes/text-mode.el (text-mode-variant): Fix last change.

9 months ago; Improve obsolescence of 'text-mode-variant'
Eli Zaretskii [Tue, 29 Apr 2025 07:09:54 +0000 (10:09 +0300)]
; Improve obsolescence of 'text-mode-variant'

* lisp/textmodes/text-mode.el (text-mode-variant): Improve
obsolescence announcement text.

* doc/lispref/modes.texi (Example Major Modes): Update example.
(Bug#78125).

9 months ago; * lisp/files.el (revert-buffer-restore-functions): Doc fix.
Eli Zaretskii [Tue, 29 Apr 2025 06:39:34 +0000 (09:39 +0300)]
; * lisp/files.el (revert-buffer-restore-functions): Doc fix.

9 months ago; Mention early-init file in Emacs FAQ for Windows
Eli Zaretskii [Tue, 29 Apr 2025 06:05:28 +0000 (09:05 +0300)]
; Mention early-init file in Emacs FAQ for Windows

* doc/misc/efaq-w32.texi (Location of init file, Init file):
Mention the early-init file.  Suggested by David Hedlund
<davidh@gnu.org>.

9 months ago; Isearch: Fix key bindings in docstrings
Jake Forster [Mon, 28 Apr 2025 12:52:18 +0000 (22:22 +0930)]
; Isearch: Fix key bindings in docstrings

* lisp/isearch.el (isearch-allow-motion)
(isearch-motion-changes-direction): Use isearch-mode-map for
commands in docstrings (bug#78118).

Copyright-paperwork-exempt: yes

9 months agoFix the Android build
Po Lu [Sun, 27 Apr 2025 13:08:48 +0000 (21:08 +0800)]
Fix the Android build

* java/README.res: Move from java/res/README, as the AAPT does
not permit non-resource files in resource directories.

9 months agoAvoid infinite recursion under 'rectangle-mark-mode'
Eli Zaretskii [Sun, 27 Apr 2025 07:08:38 +0000 (10:08 +0300)]
Avoid infinite recursion under 'rectangle-mark-mode'

* lisp/rect.el (rectangle--region-beginning)
(rectangle--region-end): Avoid infinite recursion.  Patch by Alcor
<alcor@tilde.club>.  Do not merge to master.  (Bug#77973)

9 months ago; * doc/misc/ert.texi (Introduction): Be more Lisp-specific.
Sean Whitton [Sun, 27 Apr 2025 03:59:17 +0000 (11:59 +0800)]
; * doc/misc/ert.texi (Introduction): Be more Lisp-specific.

9 months agoInclude additional version metadata during Windows install
Sean Bright [Wed, 2 Apr 2025 17:52:06 +0000 (13:52 -0400)]
Include additional version metadata during Windows install

* admin/nt/dist-build/emacs.nsi: Add DisplayIcon, DisplayVersion, and
  Publisher values to the Uninstall registry key.

Copyright-paperwork-exempt: yes

9 months ago* doc/emacs/files.texi (Time Stamp Customization): Typo.
Stephen Gildea [Sat, 26 Apr 2025 01:37:39 +0000 (18:37 -0700)]
* doc/emacs/files.texi (Time Stamp Customization): Typo.

9 months ago; * doc/emacs/search.texi (Isearch Yank): Improve flow.
Sean Whitton [Thu, 24 Apr 2025 12:38:51 +0000 (20:38 +0800)]
; * doc/emacs/search.texi (Isearch Yank): Improve flow.

9 months ago; * etc/DEBUG: Say that debugging code compiled w/ -Og can be hard.
Sean Whitton [Thu, 24 Apr 2025 12:14:36 +0000 (20:14 +0800)]
; * etc/DEBUG: Say that debugging code compiled w/ -Og can be hard.

9 months ago; Improve documentation of 'modifier-bar-mode'
Eli Zaretskii [Thu, 24 Apr 2025 09:32:02 +0000 (12:32 +0300)]
; Improve documentation of 'modifier-bar-mode'

* doc/emacs/custom.texi (Modifier Keys):
* doc/emacs/frames.texi (Tool Bars):
* lisp/tool-bar.el (modifier-bar-mode): Improve documentation of
'modifier-bar-mode'.

9 months ago; * doc/emacs/programs.texi (Matching): Fix wording (bug#78021).
Eli Zaretskii [Thu, 24 Apr 2025 09:07:56 +0000 (12:07 +0300)]
; * doc/emacs/programs.texi (Matching): Fix wording (bug#78021).

9 months ago; * doc/misc/efaq-w32.texi (MinGW-w64): Fix punctuation (bug#78005).
Eli Zaretskii [Wed, 23 Apr 2025 13:18:26 +0000 (16:18 +0300)]
; * doc/misc/efaq-w32.texi (MinGW-w64): Fix punctuation (bug#78005).

10 months ago; * java/res/README: Note origin of emacs_wrench.png.
Sean Whitton [Sun, 20 Apr 2025 01:22:06 +0000 (09:22 +0800)]
; * java/res/README: Note origin of emacs_wrench.png.

10 months agoBackport: fix flymake margin indicator fallback logic
Spencer Baugh [Thu, 17 Apr 2025 20:22:08 +0000 (16:22 -0400)]
Backport: fix flymake margin indicator fallback logic

Backport 861e7f8b60e4bf076bf5991d25a22b3a012746bd to fix bug#77313, so
that fringe indicators are once again reliably the default on frames
that support them.

Do not merge to master.

* lisp/progmodes/flymake.el (flymake-indicator-type)
(flymake-mode): Fix margin fallback behavior.

10 months ago* lisp/progmodes/heex-ts-mode.el (heex-ts): Fix :group name.
Michael Albinus [Sat, 19 Apr 2025 07:41:58 +0000 (09:41 +0200)]
* lisp/progmodes/heex-ts-mode.el (heex-ts): Fix :group name.

10 months agoFix typescript-ts-mode indentation (bug#77803)
Konstantin Kharlamov [Tue, 15 Apr 2025 14:34:11 +0000 (17:34 +0300)]
Fix typescript-ts-mode indentation (bug#77803)

Don't align variable names to their declaratory expression.

Before this commit in code like:

    const a = 1,
          b = 2;

the b would get indented to `const'.  Similarly for `var' and
`let'. The expected behavior instead is getting indented to
`typescript-ts-mode-indent-offset'.

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): Indent identifiers declarations to
`typescript-ts-mode-indent-offset'.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
(Lexical and variable declarations): Update test accordingly.

10 months agoHandle offset in treesit--update-ranges-local (bug#77848)
Yuan Fu [Fri, 18 Apr 2025 23:22:45 +0000 (16:22 -0700)]
Handle offset in treesit--update-ranges-local (bug#77848)

* lisp/treesit.el:
(treesit--update-ranges-local): Add OFFSET parameter.
(treesit-update-ranges): Pass offset to
treesit--update-ranges-local.

10 months agoDisable echo back instead of setting tty to raw in Inferior Python
kobarity [Thu, 20 Mar 2025 10:03:33 +0000 (19:03 +0900)]
Disable echo back instead of setting tty to raw in Inferior Python

* lisp/progmodes/python.el (python-shell-setup-code): Change the
Python setup code.  (Bug#76943)

(cherry picked from commit 4c5c20ddc2cdde570ccf54c4aa60644828ee213d)

10 months ago; Improve doc string of 'insert-char'
Eli Zaretskii [Fri, 18 Apr 2025 11:10:19 +0000 (14:10 +0300)]
; Improve doc string of 'insert-char'

* src/editfns.c (Finsert_char): Doc fix.  Suggested by Lactose ‎
<lactose@allthingslinux.org> (bug#77889).

10 months ago* admin/notes/emba: Fix docker build instruction.
Michael Albinus [Fri, 18 Apr 2025 07:31:54 +0000 (09:31 +0200)]
* admin/notes/emba: Fix docker build instruction.

10 months ago* doc/lispref/text.texi (Margins): Grammar fix.
Sean Whitton [Fri, 18 Apr 2025 06:31:50 +0000 (14:31 +0800)]
* doc/lispref/text.texi (Margins): Grammar fix.

Author:

10 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Fri, 18 Apr 2025 05:03:48 +0000 (08:03 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

10 months ago; Improve documentation of 'help-fns-edit-variable'
Eli Zaretskii [Wed, 16 Apr 2025 08:13:41 +0000 (11:13 +0300)]
; Improve documentation of 'help-fns-edit-variable'

* lisp/help-fns.el (help-fns-edit-variable)
(help-enable-variable-value-editing): Doc fixes.

(cherry picked from commit bf737dc42a70fd8665b7c5ad506249a6119ec4c4)

10 months agoBackport: Fix tree-sitter tests on Emba
Michael Albinus [Tue, 15 Apr 2025 12:17:25 +0000 (14:17 +0200)]
Backport: Fix tree-sitter tests on Emba

* test/infra/Dockerfile.emba: Use tree-sitter-rust v0.23.3 in
order to match ABI version of libtree-sitter0.

(cherry picked from commit 788c9cfb62c7fd50b171a9209dd7453bd03f14bf)

10 months ago; Improve documentation of some functions in files-x.el
Eli Zaretskii [Tue, 15 Apr 2025 13:58:50 +0000 (16:58 +0300)]
; Improve documentation of some functions in files-x.el

* lisp/files-x.el (modify-file-local-variable)
(modify-file-local-variable-prop-line)
(add-file-local-variable-prop-line)
(delete-file-local-variable-prop-line, add-file-local-variable)
(delete-file-local-variable): Document the effect of INTERACTIVE
argument.

10 months agoFix deleting the first line of calc trail
Wojciech Siewierski [Mon, 14 Apr 2025 16:57:28 +0000 (18:57 +0200)]
Fix deleting the first line of calc trail

* lisp/calc/calc-trail.el (calc-trail-kill): Remove the check
preventing the removal of the first trail line, which is no
longer relevant since commit 8e1376a3912.  (Bug#77816)

10 months agoFix file descriptor leaks on arm Android
Po Lu [Sun, 13 Apr 2025 11:02:00 +0000 (19:02 +0800)]
Fix file descriptor leaks on arm Android

* exec/loader-aarch64.s (_start):

* exec/loader-armeabi.s (_start): Fix thinko.
Do not merge to master.

10 months ago; Fix a typo in proced.el
Eli Zaretskii [Sun, 13 Apr 2025 09:38:04 +0000 (12:38 +0300)]
; Fix a typo in proced.el

* lisp/proced.el (proced-filter): Fix a typo.  Reported by Armin
Darvish <armindarvish@gmail.com>.  (Bug#77713)

(cherry picked from commit 3a13fb2069fc861e20fca893aa64dd70dcef0de3)

10 months agolisp/help.el (help-form-show): Improve last change (bug#77118)
Stefan Monnier [Sat, 12 Apr 2025 15:11:38 +0000 (11:11 -0400)]
lisp/help.el (help-form-show): Improve last change (bug#77118)

Fill the buffer from within the `with-output-to-temp-buffer`, as before.

10 months agoFix display of keys in 'help-form' buffers (bug#77118)
Stephen Berman [Sat, 12 Apr 2025 10:01:50 +0000 (12:01 +0200)]
Fix display of keys in 'help-form' buffers (bug#77118)

* lisp/help.el (help-form-show): Use 'insert' instead of 'princ'
so that keys in 'help-form' are displayed with 'help-key-binding' face.

10 months agoImprove documentation of 'user-emacs-directory'
Eli Zaretskii [Sat, 12 Apr 2025 06:52:04 +0000 (09:52 +0300)]
Improve documentation of 'user-emacs-directory'

* doc/emacs/custom.texi (Find Init): Document the effect of
'user-emacs-directory' on native compilation.  Advise against
changing the value of 'user-emacs-directory' in init files.
(Bug#77745)

10 months agoUpdate remarks on name prefixes in coding conventions
Sean Whitton [Sat, 12 Apr 2025 03:05:45 +0000 (11:05 +0800)]
Update remarks on name prefixes in coding conventions

* doc/lispref/tips.texi (Coding Conventions): Say that it's okay
to put the name prefix later for defining constructs, rather
than explicitly instructing the reader to do so.  Condense the
recommendation to err on the side of prepending the name prefix.

10 months ago; * doc/emacs/files.texi (Image Mode): Fix a typo (bug#77723).
Eli Zaretskii [Fri, 11 Apr 2025 08:33:26 +0000 (11:33 +0300)]
; * doc/emacs/files.texi (Image Mode): Fix a typo (bug#77723).

10 months ago; Fix doc strings of a few Dired commands
Eli Zaretskii [Wed, 9 Apr 2025 11:25:29 +0000 (14:25 +0300)]
; Fix doc strings of a few Dired commands

* lisp/dired-aux.el (dired-do-chown, dired-do-touch)
(dired-do-chgrp, dired-do-chmod): Doc fix.  (Bug#77650)

10 months ago; * CONTRIBUTE: Clarify single-line commit should end with a period.
Jeremy Bryant [Mon, 7 Apr 2025 20:47:39 +0000 (21:47 +0100)]
; * CONTRIBUTE: Clarify single-line commit should end with a period.

10 months ago; * admin/MAINTAINERS: Complete the handover of VC
Sean Whitton [Sun, 6 Apr 2025 11:03:23 +0000 (19:03 +0800)]
; * admin/MAINTAINERS: Complete the handover of VC

Changed agreed with Dmitry Gutov <dmitry@gutov.dev>.

10 months ago; Fix typo in Tramp
Michael Albinus [Sun, 6 Apr 2025 07:11:06 +0000 (09:11 +0200)]
; Fix typo in Tramp

* lisp/net/tramp-cache.el (with-tramp-saved-connection-property):
Fix typo.

10 months ago; Fix a recent backport
Eli Zaretskii [Sat, 5 Apr 2025 12:09:20 +0000 (15:09 +0300)]
; Fix a recent backport

* lisp/progmodes/typescript-ts-mode.el
(treesit-node-child-by-field-name, treesit-node-match-p)
(treesit-node-type): Declare.  Do not merge to master.

10 months agoFix Tramp problem with loooongish file names
Michael Albinus [Fri, 4 Apr 2025 12:29:00 +0000 (14:29 +0200)]
Fix Tramp problem with loooongish file names

* lisp/net/tramp-sh.el (tramp-readlink-file-truename): New defconst.
(tramp-bundle-read-file-names): Use new %m and %q format specifiers.
(tramp-sh-handle-file-truename): Use `tramp-readlink-file-truename'.
(tramp-bundle-read-file-names, tramp-get-remote-readlink): Simplify.
(tramp-expand-script): Add format specifiers %m and %q for test
commands.  Addapt readlink call.
Reported by Stacey Marshall <stacey.marshall@gmail.com>.

10 months agoTighten the criteria for a defun in typescript-ts-mode (bug#77369)
Yuan Fu [Sun, 30 Mar 2025 04:15:02 +0000 (21:15 -0700)]
Tighten the criteria for a defun in typescript-ts-mode (bug#77369)

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--defun-type-regexp): New
variable (backported from master).
(typescript-ts-mode--defun-predicate): New function.
(typescript-ts-base-mode): Use new predicate.